﻿@model Orion.Models.Question

@{
    ViewBag.Title = "IRIS Innranet - Fyrirspurn - " + Model.Title;
    Layout = "~/Views/Shared/_WorkLayout.cshtml";
}

<section id="main_content_wrapper">
<h1>Skoða fyrirspurn @Model.Title</h1>

<fieldset>
    <legend>Fyrirspurn</legend>
     @{DateTime temp = Model.QuestionDate.Value;}
       
        <div class="display-label">Dagsetning</div>
    <div class="display-field">
     <div>@temp.ToString("dd MMMM yyyy")</</div>     
    </div>
    
    <div class="display-label">Titill</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Title)
    </div>

    <div class="display-label">Fyrirspurn</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Question1)
    </div>

    <div class="display-label">Svar</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Answer)
    </div>

        <div class="display-label">Viðtakandi</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Recipient)
    </div>

    <div class="display-label">Tölvupóstur</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Email)
    </div>

    <div class="display-label">Símanúmer</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Telephone)
    </div>
    @Html.ActionLink("Til baka í fyrirspurnir", "Index")
</fieldset>
</section>